package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.Excel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @Title
 * @ClassName Policy
 * @Desription
 * @Author zhangzexu
 * @Date 2020/10/2 13:41
 * @Version V1.0
 */
@Data
@TableName("opc_policy")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "opc_policy", description = "报文策略基本信息表")
public class Policy extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * OPC_API表ID
     */
    @ApiModelProperty(value = "关联OPC_API表ID")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    @Excel(name = "关联OPC_API表ID")
    private Long apiId;

    /**
     * 报文类型
     */
    @ApiModelProperty(value = "报文类型")
    @Excel(name = "报文类型")
    private int policyType;

    /**
     * 报文编码
     */
    @ApiModelProperty(value = "报文编码")
    @Excel(name = "报文编码")
    private String policyCoding;

    @ApiModelProperty(value = "策略文件名称")
    @Excel(name = "策略文件名称")
    private String fileName;

    /**
     * 策略文件路径：basepath/API_CODE/+文件名
     */
    @ApiModelProperty(value = "策略文件路径：basepath/API_CODE/+文件名")
    @Excel(name = "策略文件路径")
    private String fileUrl;

    /**
     * 备用字段1
     */
    @ApiModelProperty(value = "备用字段1")
    @Excel(name = "备用字段1")
    private String spare1;



    /**
     * 备用字段2
     */
    @ApiModelProperty(value = "备用字段2")
    @Excel(name = "备用字段2")
    private String spare2;

//    /**
//     * 导出数据标识
//     */
//    @ApiModelProperty(value = "导出数据标识")
//    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
//    private String expSeq;
}
